/**
 * Server management
 */
var sstatus = {
	/**
	 *Show Storage status list
	 */	
	list : function(){
		var sstatuslistUrl = baseURL + "/cluster/pool/poolList" 
		$.ajax({
			type : "post",
			url : sstatuslistUrl,
			dataType : "html",
			success : function(html) {
				// Request successfully and fill the data.
				$("#list").empty().html(html);
			}
		});
	},	
	sync : function(){
		var url=baseURL+"/cluster/pool/sync";
		$.ajax({
			type : "post",
			url : url,
			success : function(result){
				if(result.result=='success'){
					common.showTip({
						success : true,
						title : localeMsg.common.info,
						type:"post",
						text : localeMsg.common.syncSuccess,
						callback : function() {
							$("#poolsForm").submit();
						}
					});
				}else{
					common.showTip({
						success : false,
						title : localeMsg.common.warn,
						text : localeMsg.common.syncFailed,
					});
				}
			}
		});
	}
};